<br><br>
<div id="wrap" class="clearfix">

    <div id="aside">

        <ol>
            <li><span>1</span><?= lang ( 'checkout.your.shopping.cart' ) ?></li>
            <li><span>2</span><?= lang ( 'checkout.payment.info' ) ?></li>
            <li class="active"><span>3</span><?= lang ( 'checkout.process.your.order' ) ?></li>
        </ol>

    </div><!-- / Aside -->

    <div id="main">

        <div class="title">
            <?
                if ( isset ( $show_paid ) )
                {
                    if ( $transaction->result == "OK" )
                    {
                        ?>
                        <h2><?= lang ( 'checkout.your.patment.successful' ) ?> </h2>
                        <?
                    }
                    else
                    {
                        ?>
                        <h2><?= lang ( 'checkout.your.patment.declined' ) ?> </h2> <?
                    }
                }
                else
                {
                    ?>
                    <h2><?= lang ( 'checkout.process.your.order' ) ?></h2>
                <? } ?>
        </div>
        <?; ?>
        <div class="inner-form customer-info">

            <?
                if ( $order->pickup_loc_price != 0 ):

                    $order->pickup_loc.=" +" . ( string ) $order->pickup_loc_price . " &euro;";
                    $order->return_loc.=" +" . ( string ) $order->return_loc_price . " &euro;";

                endif;
            ?>

            <h3><span><?= lang ( 'checkout.your.order' ) ?></span></h3>
            <dl>
                <dt><?= $car->name ?> <span><? echo $order->dayprice * $order->numofdays ?>€</span></dt>
                <dd>
                    <ul>
                        <li><span><?= lang ( 'rentacar.pickup' ) ?></span>            <span class="lh16"><?= $order->pickup_loc; ?> <br/> <?= date ( 'd.m.Y / H:i', $order->datefrom ); ?>h</span></li>
                        <li><span><?= lang ( 'rentacar.return' ) ?></span>            <span class="lh16"><?= $order->return_loc; ?> <br/> <?= date ( 'd.m.Y / H:i', $order->dateto ); ?>h</span></li>
                    </ul>

                    <? if ( isset ( $extras_html ) ): ?>
                            <h4><?= lang ( 'rentacar.bonus.equipment' ) ?></h4>
                            <ul>
                                <?= $extras_html ?>
                            </ul>
                        <? endif; ?>

                </dd>
            </dl>


            <?
                if ( isset ( $show_paid ) )
                {
                    if ( $transaction->result != "OK" )
                        $order->totalprice = 0;
                    ?>
                    <p class="total"><?= lang ( 'rentacar.paid' ) ?>: <span><?= $order->totalprice ?>€</span></p>
                    <?
                }
                else
                {
                    ?>
                    <p class="total"  <? if ( isset ( $show_paid ) ) echo 'style="margin-bottom: 7px; border-bottom:0"'; ?>><?= lang ( 'rentacar.total' ) ?>: <span><?= $order->totalprice; ?>€</span></p>
                <? } ?>

            <h3><span><?= lang ( 'checkout.contact.information' ) ?></span></h3>
            <dl>
                <dd>
                    <ul>
                        <li><span><?= lang ( 'checkout.contact.name' ) ?>:</span>        <span><?= $order->firstName ?></span></li>
                        <li><span><?= lang ( 'checkout.email' ) ?>:</span>    <span><?= $order->email ?></span></li>
                        <li><span><?= lang ( 'checkout.telephone' ) ?>:</span>    <span><?= $order->phone ?></span></li>
                        <li><span><?= lang ( 'checkout.note' ) ?>:</span>        <span><?
                                    if ( $order->note == '' )
                                    {
                                        echo 'Empty';
                                    }
                                    else
                                        echo $order->note;
                                ?></span></li>
                    </ul>
                </dd>
            </dl>
            
            <h3><span><?= lang('checkout.your.address') ?></span></h3>
            <dl>
                <dd>
                    <ul>
                        <li><span><?= lang('checkout.address') ?>:</span>        <span><?= $order->address1 ?></span></li>
                        <li><span><?= lang('checkout.city') ?>:</span>    <span><?= $order->town_city ?></span></li>
                        <li><span><?= lang('checkout.zip') ?>:</span>    <span><?= $order->zip_code ?></span></li>
                        <li><span><?= lang('checkout.country') ?>:</span>    <span><?= $order->country ?></span></li>
                        
                    </ul>
                </dd>
            </dl>

            <p class="terms"><?= lang ( 'checkout.agree.terms.conditions' ) ?> <?= lang ( 'menu.terms.conditions' ) ?> <span><?= lang ( 'checkout.yes' ) ?></span></p>

        </div>

        <?
            if ( !isset ( $show_paid ) )
            {
                ?>

                <div class="buttons-cart customer-info-button">
                    <a href="http://www.informacionisistem.com/payservice/service/pay/<?= $order->id ?>/rentacar/<?= $this->lang->lang () ?>" class="submit_button"><?= lang ( 'checkout.pay' ) ?></a>
                </div>

                <?
            }
            else
                echo "<br/><br/><br/>";
        ?>

    </div><!-- / Mian -->

</div><!-- / Wrap -->